package org.drushpal.model.vo
{
	import mx.utils.StringUtil;
	import mx.utils.UIDUtil;

	[Bindable]
	public class Connection
	{
		private var _uuid:String;
		private var _name:String;
		private var _host:String;
		private var _port:String;
		private var _identity:String;
		private var _username:String;
		private var _root:String;
		private var _uri:String;
		private var _password:String;
		private var _drushpath:String;
		
		public var isDirty:Boolean;
		
		public function Connection()
		{
			_uuid = "";
			_name = "";
			_host = "";
			_port = "22";
			_identity = "";
			_username = "";
			_root = "/";
			_uri = "http://";
			_password = "";
			_drushpath = "";
		}
				
		
		public function get uuid():String{
			return _uuid;
		}
		public function set uuid(value:String):void{
			if(value!=_uuid){
				_uuid = value;
				isDirty=true;
			}
		}
		
		public function get name():String{
			return _name;
		}
		public function set name(value:String):void{
			if(value!=_name){
				_name = value;
				isDirty=true;
			}
		}
		
		public function get host():String{
			return _host;
		}
		public function set host(value:String):void{
			if(value!=_host){
				_host = value;
				isDirty=true;
			}
		}
		
		public function get port():String{
			return _port;
		}
		public function set port(value:String):void{
			if(value!=_port){
				_port = value;
				isDirty=true;
			}
		}
		
		public function get identity():String{
			return _identity;
		}
		public function set identity(value:String):void{
			if(value!=_identity){
				_identity = value;
				isDirty=true;
			}
		}
		
		public function get username():String{
			return _username;
		}
		public function set username(value:String):void{
			if(value!=_username){
				_username = value;
				isDirty=true;
			}
		}
		
		public function get root():String{
			return _root;
		}
		public function set root(value:String):void{
			if(value!=_root){
				_root = value;
				isDirty=true;
			}
		}
		
		public function get uri():String{
			return _uri;
		}
		public function set uri(value:String):void{
			if(value!=_uri){
				_uri = value;
				isDirty=true;
			}
		}
		
		public function get password():String{
			return _password;
		}
		public function set password(value:String):void{
			if(value!=_password){
				_password = value;
				isDirty=true;
			}
		}
		
		public function get drushpath():String{
			return _drushpath;
		}
		public function set drushpath(value:String):void{
			if(value!=_drushpath){
				_drushpath = value;
				isDirty=true;
			}
		}
	}
}